package com.api.gbhg.luoao.flow;

import com.api.gbhg.luoao.utils.BudgetLinesFunction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import vba.word.Lines;
import weaver.interfaces.workflow.action.Action;
import weaver.soa.workflow.request.RequestInfo;

/**
 * 事业单位离退休人员工资津贴补贴经费需求表
 *
 * 经费额度同步
 *
 */

public class CauseRetirementPayBudgetLines implements Action {
    private final static Logger logger= LoggerFactory.getLogger(Lines.class);

    @Override
    public String execute(RequestInfo requestInfo) {
        logger.info("进入Action方法~~");
        logger.info("开始插入数据~~~");
        boolean b = BudgetLinesFunction.sumQuery(requestInfo.getRequestid(), "uf_sydwltxrygzjtbtj");


        if(b){
            return SUCCESS;
        }else {
            requestInfo.getRequestManager().setMessagecontent("同步建模表数据异常");
            requestInfo.getRequestManager().setMessageid("1");
            return FAILURE_AND_CONTINUE;
        }

    }
}
